const Class = require('../models/Class');
exports.addClass = function (classObj) {
    return Class.create(classObj);
}
exports.deleteclass = async function (classId) {
    Class.destroy({
        where: {
            id: classId
        }
    })
}
exports.updateclass = function (id, classObj) {
    Class.update(classObj, {
        where: {
            id
        }
    })
}
